from mym_caps import *
from swipe_my import *



swiep_to_up(driver)
driver.find_element(By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.viewpager.widget.ViewPager/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.ScrollView/android.widget.LinearLayout/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout[9]/android.widget.LinearLayout').click()
driver.find_element(By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout/androidx.recyclerview.widget.RecyclerView/android.view.ViewGroup[1]').click()


driver.find_element(By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.Switch').click()
driver.find_element(By.ID, 'com.mymoney:id/ll_gesture_psd').click()


for i in range(3):
    TouchAction(driver).press(x=250, y=370).wait(1000).move_to(x=640, y=370).wait(1000).move_to(x=640, y=570).wait(
        1000).release().perform()
sleep(1)

driver.find_element(By.ID, 'com.mymoney:id/email_eactv').send_keys('123456@qq.com')
driver.find_element(By.ID, 'com.mymoney:id/email_again_eactv').send_keys('123456@qq.com')
driver.find_element(By.ID, 'com.mymoney:id/ok_btn').click()

driver.quit()














